#include <iostream>
#include <string.h>

using namespace std;
#define MAX 100

int main()
{
	char str[MAX];

	if (!(cin.getline(str, MAX)))
		cerr << "Error" << endl;

	int len = strlen(str);
	for (int i = len - 1; i >= 0; i--)
	{
		cout.put(str[i]);
	}
	cout << endl;

	system("pause");
	return 0;
}